﻿<%@ Page Title="" Language="C#" MasterPageFile="/Common/Master.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentForm" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHtml" runat="Server">
    <div class="easyui-layout tableEdit" data-options="fit:true,border:false">
        <div data-options="region:'center',border:false">
           <div class="z_wrap">
                <ul class="info">
					<li>
                                        <em class='l_name'>项目名称：</em>
                                        <div class='r_con' id='Name'></div></li><li>
                                        <em class='l_name'>项目负责人：</em>
                                        <div class='r_con' id='mangerUserID'></div></li><li>
                                        <em class='l_name'>详细地址：</em>
                                        <div class='r_con' id='address'></div></li><li>
                                        <em class='l_name'>备注：</em>
                                        <div class='r_con' id='remark'></div></li><li>
                                        <em class='l_name'>位置经度：</em>
                                        <div class='r_con' id='longitude'></div></li><li>
                                        <em class='l_name'>位置维度：</em>
                                        <div class='r_con' id='latitude'></div></li><li>
                                        <em class='l_name'>项目状态：</em>
                                        <div class='r_con' id='status'></div></li><li>
                                        <em class='l_name'>创建时间：</em>
                                        <div class='r_con' id='AddTime'></div></li><li>
                                        <em class='l_name'>上次修改时间：</em>
                                        <div class='r_con' id='LastTime'></div></li><li>
                                        <em class='l_name'>上次修改人：</em>
                                        <div class='r_con' id='LastUserId'></div></li><li>
                                        <em class='l_name'>城市：</em>
                                        <div class='r_con' id='city'></div></li>
				</ul>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            if ($.getUrlParamer("guid") != "") {
                DataBind();
            }
        });

        function DataBind() {
            $.InvokeAjax({
                url: "Api/V1/dd_project/Getproject",
                data: { ID: $.getUrlParamer("guid") },
                callBack: function (data) {
                    var obj = $.StrToJson(data).Results;

                    $.SetValue("ID", obj.ID);
$.SetValue("Name", obj.Name);
$.SetValue("mangerUserID", obj.mangerUserID);
$.SetValue("address", obj.address);
$.SetValue("remark", obj.remark);
$.SetValue("longitude", obj.longitude);
$.SetValue("latitude", obj.latitude);
$.SetValue("status", obj.status);
$.SetValue("AddUserID", obj.AddUserID);
$.SetValue("AddTime", $.DateFormat(obj.AddTime, 'yyyy-MM-dd HH:mm:ss'));
$.SetValue("LastTime", $.DateFormat(obj.LastTime, 'yyyy-MM-dd HH:mm:ss'));
$.SetValue("LastUserId", obj.LastUserId);
$.SetValue("city", obj.city);

                }
            });
        } 
    </script>
</asp:Content>